package com.yand.jdk8.default_test;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

public class Test {


    public static void main(String [] args){


       /* NewCharacter newCharacter =new NewCharacterImpl();


        newCharacter.test2();*/

       Map<String, Object> param = new HashMap<>();
        param.put("1","1");
        param.put("2","1");

        param.put("3","1");
        param.put("4","1");


       Iterator<Map.Entry<String,Object>> sets =  param.entrySet().iterator();
       while(sets.hasNext()){
           Map.Entry<String,Object> keyEntry = sets.next();
           String key = keyEntry.getKey();
           sets.remove();
           System.out.println(key);
       }




    }
}
